﻿<%@ Page Title="Login" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Login.aspx.cs" Inherits="Contents_Login" EnableTheming="true" %>

<%@ OutputCache Duration="600" Location="Server" VaryByParam="none" %>
<%@ MasterType VirtualPath="~/Site.master" %>
<%@ Register Src="../Controls/PassRecoveryControl.ascx" TagName="PassRecoveryControl"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ajax:TabContainer ID="tab" runat="server" Width="500px" ActiveTabIndex="0" EnableTheming="true"
        CssClass="ajax__tab_technorati-theme">
        <ajax:TabPanel ID="pan1" runat="server" BackColor="Azure">
            <HeaderTemplate>
                <div>
                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Img/uomodonna.jpg" Height="15" />
                    <asp:Image ID="Image3" runat="server" ImageUrl="~/Img/Lucchetto.jpg" Height="15" />
                    Login utente
                </div>
            </HeaderTemplate>
            <ContentTemplate>
                <table cellpadding="5" style="width: 100%;">
                    <tr>
                        <td valign="top">
                            <div>
                                <asp:Login ID="Login1" runat="server" BackColor="Transparent" BorderColor="Gold"
                                    BorderPadding="4" BorderStyle="Solid" BorderWidth="2px" Font-Names="Verdana"
                                    Font-Size="0.8em" ForeColor="#333333">
                                    <TextBoxStyle Font-Size="0.8em" />
                                    <LoginButtonStyle BackColor="White" BorderColor="#507CD1" BorderStyle="Solid" BorderWidth="1px"
                                        Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98" />
                                    <LayoutTemplate>
                                        <table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse;">
                                            <tr>
                                                <td>
                                                    <table border="0" cellpadding="0">
                                                        <tr>
                                                            <td align="center" colspan="2" style="color: White; background-color: #507CD1; font-size: 0.9em;
                                                                font-weight: bold;">
                                                                Accedi
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right">
                                                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Nome utente:</asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="UserName" runat="server" Font-Size="0.8em" MaxLength="20"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                                    ErrorMessage="Il nome utente è obbligatorio." ToolTip="Il nome utente è obbligatorio."
                                                                    ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right">
                                                                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="Password" runat="server" Font-Size="0.8em" MaxLength="20" TextMode="Password"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                                    ErrorMessage="La password è obbligatoria." ToolTip="La password è obbligatoria."
                                                                    ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                <%-- <asp:CheckBox ID="RememberMe" runat="server" Text="Memorizza dati per la prossima volta." />
--%>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="center" colspan="2" style="color: Red;">
                                                                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right" colspan="2">
                                                                <br />
                                                                <asp:Button ID="LoginButton" runat="server" BackColor="White" BorderColor="#507CD1"
                                                                    BorderStyle="Solid" BorderWidth="1px" CommandName="Login" Font-Names="Verdana"
                                                                    Font-Size="0.8em" ForeColor="#284E98" Text="Accedi" ValidationGroup="Login1" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </LayoutTemplate>
                                    <InstructionTextStyle Font-Italic="True" ForeColor="Black" />
                                    <TitleTextStyle BackColor="#507CD1" Font-Bold="True" Font-Size="0.9em" ForeColor="White" />
                                </asp:Login>
                            </div>
                        </td>
                        <td>
                            <asp:Image ID="Image8" runat="server" ImageAlign="Middle" ImageUrl="~/Img/star.gif"
                                Style="height: 50px" />
                            <br />
                            <br />
                            <asp:Image ID="Image9" runat="server" ImageAlign="Middle" ImageUrl="~/Img/utenteGiallo.gif" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Contents/NewLogin.aspx">Se non hai un'utenza clicca quì ( Iscrizione )</asp:HyperLink>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <br />
                            Se hai dimenticato i dati di accesso clicca sulla scheda<br />
                            quì sopra 'Cambio password / dati accesso'
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <br />
                            <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/Contents/DisabilitaLogin.aspx">Se vuoi disabilitarti o cancellarti clicca quì ( Disabilitazione )</asp:HyperLink>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </ajax:TabPanel>
        <ajax:TabPanel ID="TabPanel1" runat="server">
            <HeaderTemplate>
                <div>
                    <asp:Image ID="Image2" runat="server" ImageUrl="~/Img/changepwd.jpg" Height="15" />
                    Cambio password / dati accesso
                </div>
            </HeaderTemplate>
            <ContentTemplate>
                <table>
                    <tr>
                        <td valign="top">
                            <uc1:PassRecoveryControl ID="PassRecoveryControl1" runat="server" />
                            <br />
                            <asp:ChangePassword ID="ChangePassword1" runat="server" BackColor="#EFF3FB" BorderColor="#B5C7DE"
                                BorderPadding="4" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana"
                                Font-Size="0.8em">
                                <CancelButtonStyle BackColor="White" BorderColor="#507CD1" BorderStyle="Solid" BorderWidth="1px"
                                    Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98" />
                                <PasswordHintStyle Font-Italic="True" ForeColor="#507CD1" />
                                <ContinueButtonStyle BackColor="White" BorderColor="#507CD1" BorderStyle="Solid"
                                    BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98" />
                                <ChangePasswordButtonStyle BackColor="White" BorderColor="#507CD1" BorderStyle="Solid"
                                    BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98" />
                                <TitleTextStyle BackColor="#507CD1" Font-Bold="True" Font-Size="0.9em" ForeColor="White" />
                                <TextBoxStyle Font-Size="0.8em" />
                                <InstructionTextStyle Font-Italic="True" ForeColor="Black" />
                            </asp:ChangePassword>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </ajax:TabPanel>
    </ajax:TabContainer>
</asp:Content>
